package com.xisoft;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import java.time.Duration;
import java.time.Instant;

/**
 * RunApplication启动程序
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class RunApplication {
    public static void main(String[] args) {
        Instant startTime = Instant.now();
        System.err.println("开始启动：" + startTime);
        SpringApplication.run(RunApplication.class, args);
        System.err.println(String.format("启动完成时间是：{[%s]}一共运行：{[%s ms]}",
                Instant.now(),
                Duration.between(startTime, Instant.now()).toMillis()));
    }
}

